<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
request.setAttribute("basePath", basePath);
String baseInfoJson= (String)request.getAttribute("baseInfoJson");
String transferDeptInfoJson= (String)request.getAttribute("transferDeptInfoJson");

%>
<link rel="stylesheet" href="${basePath}assets/css/basic.css"/>
<link rel="stylesheet" href="${basePath}assets/bootstrap/css/bootstrap.css"/>
<link rel="stylesheet" href="${basePath}assets/jquery-ui/jquery-ui.css"/>
<link rel="stylesheet" href="${basePath}assets/css/medical_record/home_page.css"/>
<script type="text/javascript" src="${basePath}assets/js/jquery/jquery.min.js"></script>
<script type="text/javascript" src="${basePath}assets/bootstrap/js/bootstrap.js"></script>
<script type="text/javascript" src="${basePath}assets/jquery-ui/jquery-ui.js"></script>
<script type="text/javascript" src="${basePath}assets/My97DatePicker/WdatePicker.js"></script>
<script type="text/javascript" src="${basePath}assets/js/medical_record/edit_transfer_dept_info.js"></script>
<input type="hidden" id="basePath" value="${basePath }"/>
<form action="${basePath}medical_record/edit_home_page_transfer_dept"
	method="post" style="width: 100%">
	<input type="hidden" name="visitGuid" value="${visitGuid }">
	<input type="hidden" id="transferDeptRecordCount" value="0">
<table width="100%" cellspacing="0" border="0" cellpadding="0" id="transferDeptRecords">
	<thead>
	
	
		<tr>
			<td colspan="11" class="tdLabel_7">

				<div style="float:right">
					<input type="submit" value="保存" class="btn"> <input
						type="button" value="新增"
						onclick="addTransferDeptRecord()" class="btn">
				</div>
			</td>
		</tr>
		<tr>
			<td class="tdLabel_4" width="20%">转出科室</td>
			<td class="tdLabel_4" width="20%">转入科室</td>
			
			<td class="tdLabel_4" width="17%">转科时间</td>
			<td class="tdLabel_4">转科原因</td>
			<td class="tdLabel_4" width="10%">操作</td>
		</tr>
	</thead>
	<tbody>
		
	</tbody>
</table>
</form>
<div hidden="true">
	<table>
		<tr id="templateTransferDeptTr">
			<td class="tdLabel_8">
				<select name="transferDeptRecords[0].outDeptCode" class="medicalDept">
					
				</select>
				<input type="hidden" name="transferDeptRecords[0].outDeptName" />
			</td>
			<td class="tdLabel_8">
				<select name="transferDeptRecords[0].inDeptCode" class="medicalDept">
				</select>
				<input type="hidden" name="transferDeptRecords[0].inDeptName"/>
			</td>
			<td class="tdLabel_8">
				<input type="text" name="transferDeptRecords[0].transferDeptDateTime" onfocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})">
			</td>
			<td class="tdLabel_8">
				<input type="text" style="width: 98%" name="transferDeptRecords[0].transferDeptRemarks"/>
			</td>
			<td class="tdLabel_8"style="text-align:center;">
				<a class="int" style="padding:4px;margin:0 auto"
				onclick="deleteTransferDeptRecord(this)">删除</a>
			</td>
		</tr>
	</table>
</div>
<script>
	$(function(){
		var baseInfoJson= <%=baseInfoJson%>;
		
		//console.log(baseInfoJson);
		var transferDeptInfoJson= <%=transferDeptInfoJson%>;
		//console.log(transferDeptInfoJson);
		
		
		initPage(baseInfoJson,transferDeptInfoJson);
	})
</script>